home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / LSC213.cpt / asm.h < prev    next >
Encoding:
Text File  |  1986-09-13  |  926 b   |  30 lines  |  [TEXT/KAHL]

  1.  
  2.  
  3. /*  ----- asm.h: definitions useful with inline assembly -----  */
  4.  
  5.  
  6. /*  trap modifier flags, e.g. "NewHandle  SYS+CLEAR"  */
  7.  
  8. enum {
  9.         /*  Memory Manager traps  */
  10.     SYS = 2,            /*  applies to system heap  */
  11.     CLEAR = 1,            /*  zero allocated block  */
  12.         /*  File Manager and Device Manager traps  */
  13.     ASYNC = 2,            /*  asynchronous I/O  */
  14.     HFS = 1,            /*  HFS version of trap (File Manager)  */
  15.     IMMED = 1,            /*  bypass driver queue (Device Manager)  */
  16.         /*  string operations  */
  17.     MARKS = 1,            /*  ignore diacritical marks  */
  18.     CASE = 2,            /*  don't ignore case  */
  19.         /*  GetTrapAddress, SetTrapAddress  */
  20.     NEWOS = 1,            /*  new trap numbering, OS trap  */
  21.     NEWTOOL = 3,        /*  new trap numbering, Toolbox trap  */
  22.         /*  Toolbox traps  */
  23.     AUTOPOP = 2            /*  return directly to caller's caller  */
  24. };
  25.  
  26.  
  27. /*  field offsets, e.g. "move.w  d0,OFFSET(Rect,bottom)(a2)"  */
  28.  
  29. #define OFFSET(type, field)        ((int) &((type *) 0)->field)
  30.